package com.ddstation.crm.outpatient.mapper;

import com.ddstation.crm.outpatient.entity.DtHealthDataOutpatientMedicalEntity;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface DtHealthDataOutpatientMedicalMapper extends Mapper<DtHealthDataOutpatientMedicalEntity> {
	
	/**
	 * 根据患者检索门诊病历
	 * @param id
	 * @return
	 */
	public DtHealthDataOutpatientMedicalEntity selectByPK(String id);

	/**
	 * 根据更新时间获取某个时间段内的数据
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	List<DtHealthDataOutpatientMedicalEntity> selectByTime(@Param("startTime") String startTime, @Param("endTime") String endTime);

	public List<Map<String,Object>> selectSameDoctorMedical(
			@Param("institutionId") String institutionId
			, @Param("idCard") String idCard
			, @Param("val") Integer val);
}